<script setup>
import MyComponent from "./components/MyComponent.vue";
import MySwiper from "./components/MySwiper.vue";
import MyTest from "./components/MyTest.vue";
import Cors from "./components/Cors.vue";
import KfmTable from "./components/KfmTable.vue";
import KfmTableColumn from "./components/KfmTableColumn.vue";
import ElTable from "./components/ElTable.vue";
import ElTableColumn from "./components/ElTableColumn.vue";

import { ref } from "vue";
const msg = ref("Hello Vite + Vue3");

function handleCustom(val, val2) {
  console.log("handleCustom", val, val2);
}

const tableData = ref([
  {
    name: "张三",
    age: 18,
    address: "北京市朝阳区",
  },
  {
    name: "李四",
    age: 20,
    address: "北京市海淀区",
  },
  {
    name: "王五",
    age: 22,
    address: "北京市东城区",
  },
]);
</script>

<template>
  <el-table :tableData="tableData" style="background-color: #ccc">
    <el-table-column prop="name" label="姓名" width="100"></el-table-column>
    <el-table-column prop="age" label="年龄"></el-table-column>
    <el-table-column prop="address" label="地址" width="300"></el-table-column>
  </el-table>
  <!-- <KfmTable :tableData="tableData">
    <kfm-table-column prop="name" label="姓名"></kfm-table-column>
    <KfmTableColumn prop="age" label="年龄"></KfmTableColumn>
    <KfmTableColumn prop="address" label="地址"></KfmTableColumn>
  </KfmTable> -->
  <!-- <Cors></Cors> -->
  <!-- <MyTest></MyTest> -->
  <!-- <my-swiper></my-swiper>
  <div>
    <a href="https://vitejs.dev" target="_blank">
      <img src="/vite.svg" class="logo" alt="Vite logo" />
    </a>
    <a href="https://vuejs.org/" target="_blank">
      <img src="./assets/vue.svg" class="logo vue" alt="Vue logo" />
    </a>
  </div>
  <my-component :text="msg" @custom="handleCustom">内容一</my-component>
  <MyComponent text="自定义组件二">内容二</MyComponent> -->
  <!-- <MyComponent text="自定义组件二">内容二</MyComponent> -->
</template>

<style scoped>
.logo {
  height: 6em;
  padding: 1.5em;
  will-change: filter;
  transition: filter 300ms;
}
.logo:hover {
  filter: drop-shadow(0 0 2em #646cffaa);
}
.logo.vue:hover {
  filter: drop-shadow(0 0 2em #42b883aa);
}
</style>
